﻿<UserControl x:Class="ModernControls.WindowHeader"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="55" d:DesignWidth="550" MinHeight="30" ClipToBounds="False" MinWidth="550"
             xmlns:my="clr-namespace:ModernControls" MouseDown="UserControl_MouseDown">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Style.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <Rectangle Fill="{StaticResource AppBaseBrush}" Height="55" VerticalAlignment="Top" x:Name="chromeRec"/>
        <StackPanel Orientation="Horizontal">            
            <!--<Rectangle Fill="{StaticResource Logo}" HorizontalAlignment="Left" Margin="0,-12,0,-12" Width="180" x:Name="logoImage" />-->
            <TextBlock Text="" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White" FontFamily="Segoe UI Light" FontSize="28" Margin="5,0,0,0" x:Name="titleTextBlock"/>
        </StackPanel>
        <!--<StackPanel VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,350,0" Orientation="Horizontal">
            <TextBlock Text="BEÁLLÍTÁSOK" Margin="0,7,0,0" Foreground="LightGray"/>
            <TextBlock Text="|" Margin="5,7,5,0" Foreground="White"/>
            <TextBlock Text="SÚGÓ" Margin="0,7,0,0" Foreground="LightGray"/>
        </StackPanel>-->
        <WrapPanel HorizontalAlignment="Right" VerticalAlignment="Top">
            <my:ImageButton Width="30" Height="30" x:Name="minimizeButton" Style="{DynamicResource MinimalizeButtonStyle}" Click="minimizeButton_Click" />
            <my:ImageButton Width="30" Height="30" x:Name="windowStateButton" Style="{DynamicResource WindowStateButtonStyle}" Click="windowStateButton_Click" />
            <my:ImageButton  Width="30" Height="30" x:Name="exitButton" Style="{DynamicResource ExitButtonStyle}" Click="exitButton_Click" />
        </WrapPanel>
        <TextBlock x:Name="versionText" Text="{Binding Path=Version, Mode=OneWay}" Foreground="White" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
        
    </Grid>
</UserControl>
